home *** CD-ROM | disk | FTP | other *** search
/ PD ROM 1 / PD ROM Volume I - Macintosh Software from BMUG (1988).iso / Electronic Messages / InfoMac Digests / InfoMac Vol. 6 / InfoMac 6.04 < prev    next >
Encoding:
Text File  |  1988-01-30  |  20.7 KB  |  542 lines  |  [TEXT/ttxt]

  1.  
  2.  
  3. INFO-MAC Digest         Saturday, 23 Jan 1988       Volume 6 : Issue 4
  4.  
  5. Today's Topics:
  6.                               New Moderator
  7.                       Compiling to Resource in LSP
  8.                              Re: LSP XCMDs?
  9.                          Re: Mac II Memory Usage
  10.                   Re: Laser printer screen dump needed
  11.                   MultiFinder breaks Font/DA Mover 3.5
  12.                            Re: Metronome tick
  13.                       Re: Fortran for the Macintosh
  14.                       Re: Fortran for the Macintosh
  15.                             Macintosh Fortran
  16.          BASIC: The Language of the Future?  (So says Microsoft)
  17.                                     C
  18.                                   toolbox bug?
  19.                      SubLaunching under MultiFinder
  20.         RE: Multifinder bug:  permanently locked system font file
  21.                           Grey Scale on the Mac
  22.  
  23.  
  24. ----------------------------------------------------------------------
  25.  
  26. Date: Sat, 23 Jan 88 14:34:32 PST
  27. From: Jon Pugh <INFO-MAC-REQUEST@SUMEX-AIM.Stanford.EDU>
  28. Subject: New Moderator
  29.  
  30. Hi.
  31.  
  32. I would like to thank Dave Gelphman and Dwayne Virnau for teaching me
  33. the secrets of the digests in order for me to successfully replace them
  34. as the INFO-MAC moderator.  You have probably all seen my name here before
  35. and you will continue to do so as I try to get INFO-MAC back into a timely
  36. forum for Macintosh discussions.  I just hope I can survive the exposure
  37. to TOPS-20 and TELNET.
  38.  
  39. Jon Pugh
  40. PUGH@NMFECC.ARPA
  41.  
  42. ------------------------------
  43.  
  44. Subject: Compiling to Resource in LSP
  45. Date: Wed, 20 Jan 88 10:58:40 -0800
  46. From: MAC ICS199 ACCOUNT <mac@ICS.UCI.EDU>
  47.  
  48. A while ago someone posted a problem about getting the error
  49. 'ThePort undefined' during the link process..  This is due to the global
  50. variable 'ThePort' that is defined in the MacPasLib library.  What needs
  51. to be done, when compiling to resource, is remove MacPasLib and replace
  52. it with DAPasLib.  (as stated in the manual)  DAPasLib does not have
  53. any of the QuickDraw Global variables defined.. (ThePort is only the first
  54. Quickdraw global... Black, White, Gray LtGray, DkGray, and a host of
  55. other identifiers are globals.. ThePort just happened to be the first one.)
  56.  
  57. Roy Lovejoy <rlovejoy@bonnie.uci.edu>
  58. ... a schizophrenic does not have to disclaim anything...
  59.  
  60. ------------------------------
  61.  
  62. Date: Mon, 18 Jan 88 08:15:00 -0500 (EST)
  63. From: Richard Siegel <rs4u+@andrew.cmu.edu>
  64. Subject: Re: LSP XCMDs?
  65.  
  66.  
  67. The problem is not with the libraries, but with your code.
  68.  
  69. Remember that in a code resource (of which an XCMD is an example), you are not
  70. allowed to have any global variables. This includes QuickDraw globals, such as
  71. thePort, and the standard patterns, as well as any globals that you may
  72. define.
  73. If you want standard stuff like ScreenBits.bounds, or thePort^.portRect, you
  74. can open your own grafPort, get the fields from it you need, and then close it
  75. again.
  76.  
  77.         --Rich
  78.  
  79. ===================================================================
  80. Richard Siegel
  81. THINK Technologies, QA Technician (on leave)
  82. Carnegie-Mellon University, Confused Physics Major
  83. Arpa: rs4u@andrew.cmu.edu
  84. UUCP: {decvax,ucbvax,sun}!andrew.cmu.edu!rs4u
  85. ==================================================================
  86.  
  87. ------------------------------
  88.  
  89. Date: Mon, 18 Jan 88 08:25:07 -0500 (EST)
  90. From: Richard Siegel <rs4u+@andrew.cmu.edu>
  91. Subject: Re: Mac II Memory Usage
  92.  
  93.  
  94. >I'm having problems determining whether a MAC II is
  95. >actually seeing all of it's memory (it has only 1mg).
  96. >
  97. >Does anyone know of any software utilities or memory
  98. >management tools that would help diagnose the problem?
  99.  
  100. There's not likely to be a problem with the memory itself. If you're seeing
  101. less than one megabyte, and you will, here's why:
  102.  
  103.         The Macintosh memory pool is broken down into three parts: the
  104. System Heap, the Application Heap, and the space above BufPtr. When you see
  105. a "memory available" statistic, this is in fact the amount of free memory
  106. in the Application Heap; if you're running under MultiFinder, it's the
  107. amount of free memory in that application's partition.
  108.  
  109.         The amount of free space in the application heap will always be
  110. less than the installed memory in the machine, because additional space is
  111. used by the System Heap -- about 200K to 400K, used for system globals, the
  112. file and volume info lists, the event queue, and more.
  113.  
  114.         Furthermore, the system, and other routines run at boot time, can
  115. install tasks above BufPtr; anything put above BufPtr cannot be touched, so
  116. it's most useful for installing system-level things like menu clocks, and
  117. the Apple disk cache.
  118.  
  119.         To maximize the amount of free memory, turn off the disk cache, and
  120. see if you have any startup routines (menu clocks, fancy beep sounds, etc)
  121. that may be using additional memory.
  122.  
  123.                 --Rich
  124.  
  125. ===================================================================
  126. Richard Siegel
  127. THINK Technologies, QA Technician (on leave)
  128. Carnegie-Mellon University, Confused Physics Major
  129. Arpa: rs4u@andrew.cmu.edu
  130. UUCP: {decvax,ucbvax,sun}!andrew.cmu.edu!rs4u
  131. ==================================================================
  132.  
  133. ------------------------------
  134.  
  135. Date: Mon, 18 Jan 88 08:30:13 -0500 (EST)
  136. From: Richard Siegel <rs4u+@andrew.cmu.edu>
  137. Subject: Re: Laser printer screen dump needed
  138.  
  139.  
  140. I have my own homegrown screen dump, that will print to any connect printer,
  141. either ImageWriter or LaserWriter.
  142.  
  143. I will upload it as soon as possible.
  144.  
  145.         --Rich
  146.  
  147. ===================================================================
  148. Richard Siegel
  149. THINK Technologies, QA Technician (on leave)
  150. Carnegie-Mellon University, Confused Physics Major
  151. Arpa: rs4u@andrew.cmu.edu
  152. UUCP: {decvax,ucbvax,sun}!andrew.cmu.edu!rs4u
  153. ==================================================================
  154.  
  155. ------------------------------
  156.  
  157. Date: Mon 18 Jan 88 11:34:43-EST
  158. From: "Walter E. Gillett" <GILLETT%OZ.AI.MIT.EDU@XX.LCS.MIT.EDU>
  159. Subject: MultiFinder breaks Font/DA Mover 3.5
  160.  
  161. I have found the same problem reported by sdl@mitre-bedford in V6 #1
  162. ("permanently locked system font file").  Namely, when running
  163. Multifinder the Font/DA Mover sees only the Chicago font after, say,
  164. MacWrite has run, whereas all fonts are accessible before MacWrite
  165. has run.  In either case, the Font/DA Mover doesn't see any of the
  166. DAs.  Does anyone know of a patch or more recent versions of either
  167. Multifinder or Font/DA Mover that fix this problem?
  168.  
  169. (I am using System 4.2/Multifinder 1.0/MacPlus.)
  170.  
  171. Walter
  172.  
  173. ------------------------------
  174.  
  175. Date: Tue, 19 Jan 1988 14:47-EST
  176. From: rsd@SEI.CMU.EDU
  177. Subject: Re: Metronome tick
  178.  
  179.  
  180. In article <271@rhesus.primate.wisc.edu> dubois@rhesus.primate.wisc.edu (Paul Du
  181. Bois) writes:
  182. >I'm writing myself a metronome to run on my Macintosh.  Anybody
  183. >got a suggestion for a good waveform and/or envelope that will
  184. >(a) make a nice "tick" sound, and (b) cut through the sound of
  185. >instruments well.
  186. >
  187.  
  188. WWV uses (or used to use) exactly 5 cycles of a 1KHz sinusoid to produce
  189. the 'tick' you hear.
  190.  
  191. Rich
  192.  
  193. ------------------------------
  194.  
  195. Date: Tue, 19 Jan 88 10:08:03 EST
  196. From: "Paul H. Calamai" <phcalamai@water.waterloo.edu>
  197. Subject: Re: Fortran for the Macintosh
  198.  
  199. Peter J Gergely <Peter@DREA-GRIFFIN.ARPA>:
  200. >
  201. >
  202. > As a request for a colleague, we are interested in any comments on a
  203. > good Fortran Compiler for the Macintosh, with reference to purchasing,
  204. > features, cost, etc.  Also of interest are add ons to the Fortran
  205. > Compiler, such as McFace Tools, etc.
  206. >
  207. > Please reply directly to me, and I will summarize any responses to this
  208. > group at a later date.  Many thanks in advance for any assistance
  209. > provided.
  210. >
  211. >  Peter
  212. >
  213. > Peter J. Gergely (DREA, P.O. Box 1012, Dartmouth, NS  B2Y 3Z7  Canada)
  214. >       ARPANET:  gergely@DREA-XX.ARPA (preferred)
  215. > or              Peter@DREA-GRIFFIN.ARPA
  216. >       DIALNET:  Peter@DIAL|DREA-GRIFFIN
  217. >       CSNET:    gergely%cs.dal.cdn@ubc.csnet
  218. >       UUCP:     gergely@dalcs.UUCP
  219. >       GENIE:    GERGELY
  220. >
  221. Could you please forward all replies to me before
  222. summarizing.....I need to act quickly!
  223.  
  224. Thanks
  225.  
  226. ------------------------------
  227.  
  228. Date: Mon, 18 Jan 88 21:40:52 PST
  229. From: calius@composite.STANFORD.EDU (Emilio Calius)
  230. Subject: Re: Fortran for the Macintosh
  231.  
  232.  
  233. Peter J. Gergely (gergely@DREA-XX.ARPA) writes:
  234. > As a request for a colleague, we are interested in any comments on a
  235. > good Fortran Compiler for the Macintosh, with reference to purchasing,
  236.  
  237.         This weekend at MacWorld Expo I saw a demo and spoke with one of
  238. the developers of a FORTRAN compiler tool that works in the MPW environment
  239. The feature list and the developer's stated intentions make it look pretty
  240. good, but of course I didn't get to try it with my own code.
  241.         It's supposed to be released in March for $295 (this includes MPW,
  242. which is $200 by itself).
  243.  
  244. A few of my favorite features:
  245.  
  246.         - Full ANSI standard FORTRAN-77 plus some of the DEC VAX extensions.
  247.         - Generates native 68000 OR 68020 object code and can call SANE OR
  248.           generate in-line 68881 code (it will work with a 68882, but won't
  249.           use its special features for a while).
  250.         - Unlimited sizes for data structures (no 32K array, common or
  251.           struct limits). The code itself still has to be in 32Kbyte segments,
  252.           but I don't think it's a good idea to write such large subroutines
  253.           anyway.
  254.         - They promise to have more and more specific compile error messages
  255.           than Absoft/Microsoft MacFortran and Unix f77 and to show the
  256.           exact location WITHIN the line where the compiler had indigestion.
  257.         - Optimization (a compile time option). They promise to add more
  258.           levels of optimization as the product develops.
  259.         - Has extra variable types among which I like REAL*10, *12; EXTENDED
  260.            (12 bytes); COMPLEX*16, *20, *24; XCOMPLEX; STRING; etc.
  261.         - Include files
  262.         - Can be linked to MPW Pascal, C and Assember object code files.
  263.         - They don't have their own symbolic debugger. They're committed to
  264.           support the MPW source-level debugger. I spoke to some people from
  265.           the MPW development team, and it seems it's not going to be out
  266.           before September.
  267.  
  268. For more info, talk to:
  269.  
  270.         Language Systems Corp.
  271.         463 Carlisle Drive
  272.         Herndon, VA 22070
  273.         (703) 478-0181
  274.  
  275. NOTE: the developers are willing to listen to suggestions as to what users
  276.       want, so let them know what's important.
  277.  
  278. Does anybody else know any more about this compiler?
  279.  
  280. Emilio P. Calius
  281. Structures & Composites Lab
  282. Aeronautics & Astronautics
  283. Stanford University
  284.  
  285. ------------------------------
  286.  
  287. Date: Fri 22 Jan 88 09:49:28-PDT
  288. From: Craig Rasmussen <CER@STAR.STANFORD.EDU>
  289. Subject: Macintosh Fortran
  290.  
  291. The January 11 issue of Macintosh Today has an article on a Fortran compiler
  292. from Language Systems Corp. of Herndon, Va.  I called (703-478-0181) for more
  293. information and found out several interesting points:
  294.  - runs in the MPW environment, so as I understand it, the code can be linked
  295.    with other MPW languages
  296.  - follows the ANSI 77 standard with VAX VMS Fortran extensions
  297.  - will generate code for various environments (68000, 68020, 68881, SANE)
  298.  - costs $295 and will be out in April (or was it March)
  299.  
  300. They will be in Beta shortly and are willing to sell a Beta version which can
  301. be upgraded when the final version is released.  Anyone heard of Language
  302. Systems Corp. and know of their reputation?
  303.  
  304. ------------------------------
  305.  
  306. Date: Wed 20 Jan 88 18:32:28-PST
  307. From: A. E. Siegman <SIEGMAN@Sierra.Stanford.EDU>
  308. Subject: BASIC: The Language of the Future?  (So says Microsoft)
  309.  
  310. The following is excerpted from a column called "Off the Grapevine" in
  311. the Boston Computer Society's most recent monthly newsletter:
  312.  
  313. In late October, Microsoft hosted a two-day seminar at its Redmond,
  314. Washington, corporate campus to share its vision of software with leaders
  315. of some of the nation's largest user groups.
  316.  
  317. Microsoft today is bustling with activity.  As the company puts the
  318. finishing touches on OS/2 and secures its pre-eminent position in the
  319. world of operating systems, it is moving aggressively to become a leader
  320. in many other markets.  The company is rapidly adding new features and
  321. versions to its Word word processor to try to make it a standard in
  322. corporate America.  It is launching a head-on attack against Lotus 1-2-3
  323. with its new PC Excel.  It is acquiring companies to stake out market
  324. positions in electronic mail and desktop presentations.  And it is
  325. building a major hardware business with its Mouse and Mach 20 accelerator
  326. card.
  327.  
  328. Oddly enough, Microsoft chose not to talk about any of these activities
  329. with the user group community.  Instead, it focused all of the sessions
  330. on its work in programming languages.
  331.  
  332. Microsoft believes the future belongs to programmers.  Although
  333. programming languages were once thought to be relics of the early days
  334. of personal computers, they are enjoying tremendous growth today.  As
  335. users become more sophisticated, Microsoft believes, they will eventually
  336. find themselves needing performance and specialized functions that only
  337. a programming language can provide.
  338.  
  339. Said one Microsoft engineer, "In the future, everything should have
  340. programmability."
  341.  
  342. BACK TO BASIC
  343.  
  344. If it seemed surprising that Microsoft focused its entire presentation
  345. to user groups on programming languages, it was more surprising still that
  346. the company put special emphasis on one language in particular: BASIC.
  347.  
  348. Most serious programmers consider BASIC an obsolete language.  Although
  349. BASIC's wide distribution gives it broad recognition among personal
  350. computer users, professionals consider it too slow and lacking in
  351. sophistication for serious programming jobs.  More and more, they are
  352. opting for C as their language of choice.
  353.  
  354. Why, then, did Microsoft spend so much of its time with user groups
  355. promoting a new version of BASIC?  According to the company, BASIC is
  356. going to be making a big comeback.
  357.  
  358. With Microsoft's Quick BASIC 4.0, the company believes it has overcome
  359. most of BASIC's key weaknesses.  The language is now lightning-fast and
  360. has nearly all of the modular structured programming features found in
  361. Pascal and C.
  362.  
  363. More important, BASIC is still much easier to use than any other language.
  364. For this reason, Microsoft sees BASIC as Rthe language of programmability
  365. for the future.S
  366.  
  367. As the presenters developed this idea, it became clear that BASIC could
  368. take on new roles in the future.  For the last few months, Microsoft
  369. chairman Bill Gates has talked about the need for a "universal macro
  370. language" for personal computers.  This language would allow users to
  371. write procedures that work with all different applications programs and
  372. operating systems.  (It could, for example, permit you to write a macro
  373. in 1-2-3  that called up a program in dBase III  and then transferred
  374. information to Pagemaker.)
  375.  
  376. Although the presenters did not say so directly, they implied that
  377. Microsoft was working to make BASIC the basis of this universal macro
  378. language.  BASIC, then, could become the Esperanto of the applications
  379. software.
  380. [Given the success of Esperanto over the years, that last sentence
  381. is hardly the most promising vision of the future!]
  382.  
  383. ------------------------------
  384.  
  385. Date: Thu, 21 Jan 88 08:37:53 EST
  386. From: "William E. Williams"
  387. From: <BSQUARE%YALEVM.BITNET@forsythe.stanford.edu>
  388. Subject: C
  389.  
  390. Can someone recommend a C compiler for the Mac?  I am an experienced Mac
  391. Pascal programmer but have never even looked closely at a C program.  Also, is
  392. there a good C-oriented Mac programming text?  I have what appears to be an
  393. excellent book called "Pascal to C," for general C programming, but I'm not
  394. sure what's available specifically for the Mac.
  395.  
  396. [ Almost everyone will recommend Lighspeed C as the system of choice for
  397.   C programming on the Mac - JP ]21-Jan-88 13:38:32-PST,1175;000000000001
  398.  
  399. ------------------------------
  400.  
  401. Date:     21-JAN-1988 16:36:24.07
  402. From:     THOMPSON @ REDBUD.PSY.CMU.EDU
  403. Subject:     toolbox bug?
  404. Reply-to:     THOMPSON @ PSY.CMU.EDU
  405.  
  406.     I am having some trouble with a Lightspeed C program.  I have a
  407.     call to the ShowWindow toolbox routine, and code immediately after
  408.     the call in the same routine is not getting executed. I set a
  409.     breakpoint on the instruction after the Toolbox call using MacsBug,
  410.     and there was no break.  The program continues to execute, but I'm
  411.     not sure where it picks up after the toolbox call (it's difficult
  412.     to track.)
  413.  
  414.     In addition, if you step through the toolbox call, the system branches
  415.     to location 0x08064C0, but if you ask MacsBug to print the ShowWindow
  416.     routine, it starts printing at 0x08FC2E.
  417.  
  418.     I'd appreciate any help on this problem.
  419.  
  420.                                 Ross
  421.  
  422. ------------------------------
  423.  
  424. Date: Wed, 20 Jan 88 16:52:43 pst
  425. From: Larry Rosenstein <lsr@apple.apple.com>
  426. Subject: SubLaunching under MultiFinder
  427.  
  428.  
  429. In article <8801121446.AA21330@ucbvax.Berkeley.EDU> you write:
  430. >From: RJWM
  431. >Subject: RE: Launching or Sublaunching Another Ap (Re: Msg 2270)
  432. >Date: 4-JAN-22:52: Programming Techniques
  433. >
  434. >Two related question. The sublaunch facility that HyperCard uses does not
  435. >require System 4.1-it works perfectly well with 4.0. How does it work? How can
  436.  
  437. I don't know how it works, but it doesn't work properly with MultiFinder.
  438. Under MultiFinder, Hypercard will be terminated when it tires to do a
  439. sublaunch.
  440.  
  441. The only way to do a sublaunch that will work properly under MultiFinder is
  442. the one described in the sublaunching Tech Note.
  443.  
  444. >From: DEWI
  445. >Date: 5-JAN-05:11: Programming Techniques
  446. >
  447. >If the scenario is program A gets called with attached document A, program A
  448. >sublaunches B with document B, then under MultiFinder you have the choice of
  449. >keeping doc A open, or re-opening it after the sublaunch (just in case you
  450. >weren't under MultiFinder and the launch didn't return). Unfortunately, you
  451.  
  452. For now, you have to test for the existence of the MultiFinder temporary
  453. memory allocation service.  This is better than testing for WaitNextEvent,
  454. but may change in a future version.
  455.  
  456. If MultiFinder is running (according to this test), then the sublaunch will
  457. return to the program, and document A will still be open.  Otherwise, you do
  458. have to remember the location of A, and reopen it.
  459.  
  460. >The only glitch with this is with some esoteric networks where the directory
  461. >IDs are dynamically allocated. Saving a pathname, a la HyperCard, would solve
  462.  
  463. This is only if you expect to resume after rebooting.  In most cases,
  464. saving the dirID will be OK, because it will be unique until the volume is
  465. unmounted.  If the program can't locate the file, it should simply put up a
  466. message.
  467.  
  468. ------------------------------
  469.  
  470. Date: Thu, 21 Jan 88 19:22:41 pst
  471. From: Larry Rosenstein <lsr@apple.apple.com>
  472. Subject: RE: Multifinder bug:  permanently locked system font file
  473.  
  474. In article <8801180313.AA05979@ucbvax.Berkeley.EDU> you write:
  475. >Date: Mon, 21 Dec 87 18:21:46 EST
  476. >From: sdl@mitre-bedford.ARPA (Litvintchouk)
  477. >Subject: Multifinder bug:  permanently locked system font file
  478. >Example:  Start up MicroSoft Word.  Then start up the Font Mover.  You
  479. >notice that the only font it can access is Chicago 12 (presumably
  480. >because MicroSoft Word has locked the font file against access by the
  481. >Font Mover).
  482.  
  483. This sounds like you were using an older version of Font/DA Mover.  The 3.6
  484. version should work properly.  Old versions (as well as ResEdit) will
  485. exhibit this kind of problem.
  486.  
  487. >Date: Tue 12 Jan 88 07:44:13-PDT
  488. >From: Elliot Bennett <ELLIOT@STAR.STANFORD.EDU>
  489. >
  490. >It's more than likely that I've missed this, but I haven't read anything
  491. >in a while noting the obvious multifinder bug of not updating icons
  492. >that happen to be on the desktop (and not in a window).  Does anyone
  493.  
  494. I have never seen this.  The icons on the desktop update fine.  I keep lots
  495. of icons on the desktop and the only problem I have is when an application's
  496. window covers them, other than that they display normally under MultiFinder.
  497.  
  498. Larry Rosenstein
  499.  
  500. Object Specialist
  501. Apple Computer
  502. AppleLink: Rosenstein1
  503. CSNET: lsr@Apple.com
  504.  
  505. ------------------------------
  506.  
  507. Date: Fri, 22 Jan 1988 08:35 CST
  508. From: Revised List Processor (1.5m)
  509. From: <LISTSERV%UIUCVMD.BITNET@forsythe.stanford.edu>
  510. Subject: Grey Scale on the Mac
  511.  
  512. Date:     Fri, 22 Jan 88 09:35 EDT
  513. From:     <VAUGHAN@MCOIARC>
  514. To:       info-mac@uiucvmd
  515.  
  516. Does anyone know of any sample code for displaying gray scale images
  517. on the MacII?  I'am attempting to write an image processing system
  518. for the MacII based on STILE (STructure Interconnection Language
  519. and Environment) from Bruce Weide at OSU.
  520.  
  521. The scenario I've tried is:
  522.  
  523. a) create a pixmap containing the image data
  524. b) open a color window
  525. c) create a palette with 128 explicit colors, for shades of gray
  526. d) set the palette to the window and then activate it,
  527. e) use copybits to copy the image data to the window.
  528.  
  529. This puts the image data there, but it produces only 16 shades of gray...
  530.  
  531. Thanks,
  532.  
  533. Clif Vaughan
  534. Image Analysis Research Center
  535. The Medical College of Ohio
  536. 419-381-5448                      bitnet: VAUGHAN@MCOIARC
  537.  
  538. ------------------------------
  539.  
  540. End of INFO-MAC Digest
  541. **********************
  542.